package com.itheima.a02threadcase2;

public class MyRunnable implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            /*获取当前线程
            Thread.currentThread()
             */
            System.out.println(Thread.currentThread()+":"+i);
        }
    }
}
